home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / super_cr.swf / scripts / DefineSprite_380 / frame_240 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  435 b   |  24 lines

  1. stop();
  2. delete ball.onEnterFrame;
  3. ball._x = 170;
  4. ball._y = 20;
  5. ball._xscale = 970;
  6. ball._yscale = 970;
  7. flame._alpha = 0;
  8. ball.onEnterFrame = function()
  9. {
  10.    this._rotation += 90;
  11.    this._x -= 2;
  12. };
  13. flame.onEnterFrame = function()
  14. {
  15.    this._x = ball._x + 104;
  16.    this._alpha = this._alpha + 1;
  17.    if(this._alpha >= 100)
  18.    {
  19.       delete ball.onEnterFrame;
  20.       delete this.onEnterFrame;
  21.       play();
  22.    }
  23. };
  24.